package pkg.genericity.startup;

import java.util.ResourceBundle;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import pkg.genericity.utils.BeanUtil;

public class InitServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	public InitServlet() {
        super();
    }

	@Override
	public void init() throws ServletException {
		super.init();
	//	CriteriaBO criteriabo= new CriteriaBO();
		//getServletContext().setAttribute("criterion", criteriabo.getAllCriterion());
		ResourceBundle bundle= ResourceBundle.getBundle("pkg.genericity.app");
		getServletContext().setAttribute("classes", new BeanUtil().getAllClasses(bundle.getString("data.objects.package")));
		
	}
}
